
#If KERNELRELEASE is defined, we've been invoked from the 
#kernel build system and can use its language.
ifneq ($(KERNELRELEASE),)

	obj-m := current.o

else
	KERNELDIR ?= /home/f/linux-2.6.24
	PWD := $(shell pwd)
default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
	/usr/local/arm/4.2.2-eabi/usr/bin/arm-unknown-linux-gnueabi-strip --strip-debug *.ko
clean:
	rm -rf *.ko *.o *.mod.o *.mod.c *.symvers .tmp_versions *.cmd

endif
